package com.maxd.service.order;
import com.maxd.error.Result;
import com.maxd.model.PublisherOrderDtoBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface OrderService {

    Result delete(long id);

    /**
     * 修改
     */
    Result save(PublisherOrderDtoBean publisherOrderDtoBean);

    Result findByRelationId(Long relation_id, Pageable pageable);

    Result findByRelationIdAndStatus(Long relation_id, Integer tk_status, Pageable pageable);

    Result getAdminList(String fromInfo, Integer tk_status, Pageable pageable, String relation);

    Result pubSharePreFeeCount(Long relation_id, int tk_status);

    Result pubSharePreFeeLastMonthCount(Long relation_id, int tk_status);

    Result getPaidCount(Long relation_id);

    Result getMonthPaidCount(Long relation_id);

    Result findByRelationIdCount(String trade_id);

    Result findByRelationIdList(Long relation_id);

    List<Map<String,Object>> selectOrderLists(String phone, String nickName, String relationId);

    Result findByTime(String time);

    Result selectOrderList(Pageable pageable,String phone,String nickName,String relationId,String gradeIndex);

    Result selectOrderListByUserId(Long userId,Pageable pageable);

    Result countByTime(String time, Long relation_id);

}
